package com.vdong.trade.trading.common.exception;

/**
 * @author <a href="mailto:clf@vdongzc.com">clf</a>
 * @Description: 业务层异常基类
 * @Date Create on 2018-12-15 15:10:22
 * @since version1.0
 */
public class BaseException extends RuntimeException {

    protected String errorCode;

    protected String message;

    public BaseException() {
        super();
    }

    public BaseException(String message) {
        super();
        this.message = message;
    }

    public BaseException(Throwable arg0) {
        super(arg0);
    }

    public BaseException(String errorCode, Throwable cause) {
        super(cause);
        this.errorCode = errorCode;
    }

    public BaseException(String errorCode, String message) {
        super();
        this.errorCode = errorCode;
        this.message = message;
    }

    public BaseException(String errorCode, String message, Throwable cause) {
        super(cause);
        this.errorCode = errorCode;
        this.message = message;
    }

    public BaseException(String errorCode, String message, String extFields, Throwable cause) {
        super(cause);
        this.errorCode = errorCode;
        this.message = message;
    }

    /**
     * Getter method for property <tt>errorCode</tt>.
     *
     * @return property value of errorCode
     */
    public String getErrorCode() {
        return errorCode;
    }

    /**
     * Setter method for property <tt>errorCode</tt>.
     *
     * @param errorCode value to be assigned to property errorCode
     */
    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }


    /**
     * Getter method for property <tt>message</tt>.
     *
     * @return property value of message
     */
    public String getMessage() {
        return message;
    }

    /**
     * Setter method for property <tt>message</tt>.
     *
     * @param message value to be assigned to property message
     */
    public void setMessage(String message) {
        this.message = message;
    }

}
